package au.com.carboncycle.gb;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class GeneralBrawler {

	public static void main(String[] args)
    {
    	JFrame frame = new JFrame("General Brawler 1");
    	
    	GeneralBrawlerComponent gbComponent = new GeneralBrawlerComponent(1240, 700);
    	
    	frame.setContentPane(gbComponent);
    	frame.setResizable(false);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();

        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((screenSize.width-frame.getWidth())/2, (screenSize.height-frame.getHeight())/2);

        frame.setVisible(true);

        gbComponent.start();
   
    }

}
